<?php
$this->breadcrumbs=array(
	'Anggaran'=>'#',
	'Terkirim',
);

$this->menu=array(
	array('label'=>'List DTrktrm','url'=>array('index')),
	array('label'=>'Create DTrktrm','url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$.fn.yiiGridView.update('dtrktrm-grid', {
		data: $(this).serialize()
	});
	return false;
});
");
?>
<style>
    #dtrktrm-grid { width: 170%; }
</style>
<div id="bungkus">
    <?php $this->widget('bootstrap.widgets.BootGridView',array(
	'id'=>'dtrktrm-grid',
	'dataProvider'=>$model->search(),
	'filter'=>$model,
	'columns'=>array(
		array(
                        'name'=>'THANG',
						'header'=>'TAHUN',
                       'htmlOptions'=>array('width'=>'30px'),
                ),
		array(
                        'name'=>'KDSATKER',
						'header'=>'SATKER',
                        'value'=>'$data->satker->NMSATKER',
						'htmlOptions'=>array('width'=>'180px','style'=>'text-align: left'),
                ),
                array(
                        'name'=>'KDPROGRAM',
						'header'=>'PROGRAM',
						'htmlOptions'=>array('width'=>'30px'),
                   //     'value'=>'$data->program->NMPROGRAM',
                ),
                
                array(
                        'name'=>'KDGIAT',
						'header'=>'KEGIATAN',
						'htmlOptions'=>array('width'=>'30px'),
                    //    'value'=>'$data->giat->NMGIAT',
                ),
				array(        
						'name'=>'RPHPAGU',
						'header'=>'RPH PAGU',
						'value'=>'number_format($data->RPHPAGU)',
						'htmlOptions'=>array('width'=>'120px','style'=>'text-align: right'),
						
                ),
		//'KDTRKTRM',
		//'JNSBELANJA',
		array(        
						'name'=>'JML01',
						'header'=>'JANUARI',
						'value'=>'number_format($data->JML01)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML02',
						'header'=>'FEBRUARI',
						'value'=>'number_format($data->JML02)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML03',
						'header'=>'MARET',
						'value'=>'number_format($data->JML03)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML04',
						'header'=>'APRIL',
						'value'=>'number_format($data->JML04)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML05',
						'header'=>'MEI',
						'value'=>'number_format($data->JML05)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML06',
						'header'=>'JUNI',
						'value'=>'number_format($data->JML06)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML07',
						'header'=>'JULI',
						'value'=>'number_format($data->JML07)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML08',
						'header'=>'AGUSTUS',
						'value'=>'number_format($data->JML08)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML09',
						'header'=>'SEPTEMBER',
						'value'=>'number_format($data->JML09)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML10',
						'header'=>'OKTOBER',
						'value'=>'number_format($data->JML10)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML11',
						'header'=>'NOVEMBER',
						'value'=>'number_format($data->JML11)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
				array(        
						'name'=>'JML12',
						'header'=>'DESEMBER',
						'value'=>'number_format($data->JML12)',
						'htmlOptions'=>array('width'=>'100px','style'=>'text-align: right'),
                ),
		/*
		'KDDEKON',
		'KDFUNGSI',
		'KDSFUNG',
		'KDPROGRAM',
		'KDGIAT',
		'RPHPAGU',
		'KDTRKTRM',
		'JNSBELANJA',
		'JML01',
		'JML02',
		'JML03',
		'JML04',
		'JML05',
		'JML06',
		'JML07',
		'JML08',
		'JML09',
		'JML10',
		'JML11',
		'JML12',
		'PERSEN01',
		'PERSEN02',
		'PERSEN03',
		'PERSEN04',
		'PERSEN05',
		'PERSEN06',
		'PERSEN07',
		'PERSEN08',
		'PERSEN09',
		'PERSEN10',
		'PERSEN11',
		'PERSEN12',
		'CHK01',
		'CHK02',
		'CHK03',
		'CHK04',
		'CHK05',
		'CHK06',
		'CHK07',
		'CHK08',
		'CHK09',
		'CHK10',
		'CHK11',
		'CHK12',
		'CHKJMLTRK',
		'CHKPERSEN',
		'CHKRATA2',
		'CHKRATA2GJ',
		'KDLOKASI',
		*/
	),
)); ?>
</div>

